.imgList(@path){
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-image: url(@path);
}

body{
  //height: 3000px;
  background-color: #000;
}
li{
  list-style: none;
}

.hide{
  top: -45px !important;
}
@import "loginLayout";
@import "header";

#box {
  width: auto;
  height: 580px;
  margin: 0 auto 20px auto;
  position: relative;
  z-index: 9;
  #img{
    .innerText{
      color: #fff;
      position: absolute;
      left: 18%;
      top: 30%;
      transition: 0.5s;
      width: 600px;
      p{
        font-family: geforce-bold,sans-serif;
        font-weight: bold;
        &:first-child{
          margin-bottom: 10px;
          font-size: 50px;
        }
        &:not(:first-child){
          font-size: 30px;
          color: #76B900;
        }
      }
    }
    li{
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      transition: .5s;
    }
    #img1{
      .imgList("../images/1.jpg")
    }
    #img2{
      .imgList("../images/2.jpg")
    }
    #img3{
      .imgList("../images/3.jpg")
    }
    #img4{
      .imgList("../images/4.jpg")
    }
  }
  #dian {
    position: absolute;
    bottom: 10px;
    z-index: 9999999999;
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    cursor: pointer;
    li {
      width: 10px;
      height: 10px;
      margin: 0 5px;
      border-radius: 500000000000em;
      background-color: #ddd;
      list-style: none;
      transition: 0.3s;
      &:hover{
        transform: scale(1.3);
      }
    }
  }
}
main{
  .infoBTitle{
    margin: 10px auto 10px;
    color: #fff;
    border-left: 15px solid #76B900;
    padding-right: 0;
    padding-left: 10px;
    height: 30px;
    line-height: 30px;
  }
  .infoList{
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit,365px);
    justify-content: center;
    .infoBox{
      //background-color: #bfa;
      .infoImg{
        img{
          width: 100%;
        }
      }
      .infoTitle{
        font-family: geforce-bold, sans-serif;
        color: #76B900;
        padding: 10px;
        font-size: 30px;
      }
      .infoIntroduction{
        padding: 0 10px 0;
        color: #fff;
        line-height: 24px;
        font-size: 16px;
      }
      .price{
        margin: 10px auto;
        font-family: geforce-bold, sans-serif;
        font-size: 25px;
        text-align: center;
      }
      .goBuy{
        margin: 20px auto;
        a{
          width: 40%;
          margin: 0 auto;
          display: grid;
          background-color: #76B900;
          height: 40px;
          font-size: 20px;
          place-items: center;
          color: #fff;
          text-decoration: none;
        }
      }
    }
  }
}
footer{
  margin-top: 20px;
  .mail{
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    .mailImg{
      flex-basis: 20%;
      display: grid;
      place-items: center;
    }
    .mailInfo{
      flex-basis: 30%;
      font-weight: bold;
      color: #fff;
      display: grid;
      place-items: center;
    }
    form{
      flex-basis: 50%;
      input[type="email"]{
        height: 30px;
        width: 50%;
        border: 1px solid #ddd;
        background-color: transparent;
        padding: 5px;
        line-height: 20px;
        color: #fff;
      }
      input[type="submit"]{
        border: none;
        background-color: #76B900;
        color: #fff;
        height: 42px;
        width: 10%;
        position: relative;
        top: 1px;
      }
    }
  }
  .copyright{
    background-color: #fff;
    padding: 50px;
    .inner{
      font-size: 25px;
      color: #aaa;
      font-family: geforce-bold, sans-serif;
      font-weight: bold;
      a{
        margin-left: 20px;
        color: #aaa;
      }
    }
  }
}
@media only screen and (max-width: 768px){
  #box #img{
    .innerText{
      width: 90%;
      left: 5%;
      top: 5%;
    }
    #img1{
      background-image: url("../images/1_767px.jpg");
    }
    #img2{
      background-image: url("../images/2_767px.jpg");
    }
    #img3{
      background-image: url("../images/3_767px.jpg");
    }
    #img4{
      background-image: url("../images/4_767px.jpg");
    }
  }
  footer .mail {
    .mailImg{
      flex-basis: 100%;
    }
    .mailInfo{
      margin: 20px auto;
      flex-basis: 100%;
    }
    form{
      flex-basis: 100%;
    }
  }
}
@media only screen and (max-width: 992px) {
  #box #img{
    .innerText{
      left: 5%;
    }
  }
}

@media only screen and (max-width: 1200px){
  #box #img{
    .innerText{
      left: 10%;
    }
  }
}